import request from '@/utils/request'

// 查询文档借阅列表
export function listOaFileLending(query) {
  return request({
    url: '/oaFileLending/oaFileLending/list',
    method: 'get',
    params: query
  })
}

// 查询文档借阅详细
export function getOaFileLending(id) {
  return request({
    url: '/oaFileLending/oaFileLending/' + id,
    method: 'get'
  })
}

// 保存文档借阅
export function saveOaFileLending(data) {
  return request({
    url: '/oaFileLending/oaFileLending/save',
    method: 'post',
    data: data
  })
}

// 删除文档借阅
export function delOaFileLending(id) {
  return request({
    url: '/oaFileLending/oaFileLending/' + id,
    method: 'delete'
  })
}

// 删除文档借阅子表数据
export function oaFileBorrowingDelete(id) {
  return request({
    url: '/oaFileLending/oaFileLending/oaFileBorrowingDelete/' + id,
    method: 'delete'
  })
}

// 导出文档借阅
export function exportOaFileLending(query) {
  return request({
    url: '/oaFileLending/oaFileLending/export',
    method: 'get',
    params: query
  })
}

//
export function showFileList(query) {
  return request({
    url: '/oaFileLending/oaFileLending/showFileList',
    method: 'get',
    params: query
  })
}

